export default [
    {
        path: '/host',
        name: 'host',
        component:()=>import('../views/Host.vue')
    },
    {
        path: '/add',
        name: 'add',
        component:()=>import('../views/Add.vue')
    },
    {
        path: '/',
        redirect:'/host'
    },
    {
        path: '/:error(.*)', //必须写成 正则的语法
        component: () => import('../views/NotFound.vue')
    }

]